-
Notifications
You must be signed in to change notification settings - Fork 421
feat(event_source): Event source dataclasses for IoT Core Registry Events #6123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(event_source): Event source dataclasses for IoT Core Registry Events #6123
Conversation
Closes #6110 |
No related issues found. Please ensure there is an open issue related to this change to avoid significant delays or closure. |
Hi @leandrodamascena, would you like me to add examples for every class? I already added the documentation headers, but was not sure to already implement them all since their quite identical. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @basvandriel! SUPER THANKS for another super PR! I just left some comments to adhere to this PEP.
If possible, please add a small example for each class. If you don't have time, please let me know that I can do this.
aws_lambda_powertools/utilities/data_classes/iot_registry_event.py
Outdated
Show resolved
Hide resolved
aws_lambda_powertools/utilities/data_classes/iot_registry_event.py
Outdated
Show resolved
Hide resolved
aws_lambda_powertools/utilities/data_classes/iot_registry_event.py
Outdated
Show resolved
Hide resolved
aws_lambda_powertools/utilities/data_classes/iot_registry_event.py
Outdated
Show resolved
Hide resolved
aws_lambda_powertools/utilities/data_classes/iot_registry_event.py
Outdated
Show resolved
Hide resolved
aws_lambda_powertools/utilities/data_classes/iot_registry_event.py
Outdated
Show resolved
Hide resolved
aws_lambda_powertools/utilities/data_classes/iot_registry_event.py
Outdated
Show resolved
Hide resolved
aws_lambda_powertools/utilities/data_classes/iot_registry_event.py
Outdated
Show resolved
Hide resolved
aws_lambda_powertools/utilities/data_classes/iot_registry_event.py
Outdated
Show resolved
Hide resolved
aws_lambda_powertools/utilities/data_classes/iot_registry_event.py
Outdated
Show resolved
Hide resolved
Hi @leandrodamascena, will do! Thanks for the review. I'll try to find time to implement the examples this week. |
Hey @basvandriel, thanks for accepting the suggestions and working to address them! I'm currently away from my computer, but I'll review everything tomorrow morning. Everything looks good, but If any small changes are needed, I'll send a small commit and merge it. I'd like to include it in the release we're planning for tomorrow. Thanks a lot for this another super PR! 🎉🎉👏👏 |
Hi @leandrodamascena, again, sorry for the late reply. Feel free to review my latest changes, I've updated documentation and added examples as discussed. I had to commit your suggested changes manually, as GitHub wouldn't let me do it in the browser. Anyway - looking forward to your response! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #6123 +/- ##
===========================================
+ Coverage 96.19% 96.25% +0.05%
===========================================
Files 235 236 +1
Lines 11229 11399 +170
Branches 828 828
===========================================
+ Hits 10802 10972 +170
Misses 337 337
Partials 90 90 ☔ View full report in Codecov by Sentry. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @basvandriel! Thanks a lot for working on this PR! I just made some minor changes to the documentation and added all the fields to the test file to increase coverage.
APPROVED! This will be included in the release in the next few hours!
Issue number: #6110
Summary
Changes
On top of the pydantic classes for the IoT registry events, this pull request also implements the event source dataclasses.
User experience
Checklist
If your change doesn't seem to apply, please leave them unchecked.
Is this a breaking change?
RFC issue number:
Checklist:
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.